// Author: Bjorn Schobben
#include "Point.h"

Point::Point(int newX, int newY): x(newX), y(newY)
{
}

Point::Point(const Point& rhs): x(rhs.x), y(rhs.y)
{
}

Point::~Point()
{
}

//Return x-value
int Point::GetX() const
{
	return x;
}

//Return y-value
int Point::GetY() const
{
	return y;
}

//Set x-value
void Point::SetX(int newX) 
{
	x = newX;
}

//Set y-value
void Point::SetY(int newY)
{
	y = newY;
}

//Overloaded operator == for points
bool Point::operator==(const Point& rhs) const
{
	bool result = false;

	if (x == rhs.x && y == rhs.y)
	{
		result = true;
	}
			
	return result;
}